package demo2;

public class MyArray <T> {
    public Object[] object = new Object[10];

    public T getObject(int pos) {
        return (T)object[pos];
    }

    public void setObject(int pos,T val) {
        object[pos] = val;
    }
}
